package com.security.security;

import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionSignUp;
import org.springframework.stereotype.Component;

/**
 * @author td
 * @date 2018/1/26
 */
@Component
public class DemoConnectionSignUp implements ConnectionSignUp {
    // 自动注册一个用户,并返回唯一标示
    @Override
    public String execute(Connection<?> connection) {
        // 根据社交用户信息默认创建用户并返回用户唯一标示
      //  SysUser sysUser = new SysUser();

        

        return connection.getDisplayName();
    }
}
